package com.ui.zhixiao.service.impl;


import com.ui.zhixiao.domain.Video;
import com.ui.zhixiao.service.videoService;
import com.ui.zhixiao.mapper.videoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class videoServiceImpl implements videoService {
    @Autowired
    private videoMapper videoMapper;

    public List<Video> getVideosByCategory(String subject, String innerSubject) {
        return videoMapper.findByCategory(subject, innerSubject);
    }
}
